package com.lottery.system.controller.param;

import lombok.Data;

/**
 * @author: xiaoxie
 * create: 2024-09-08 09:46
 * @BelongsProject: lottery-system
 * @BelongsPackage: com.lottery.system.controller.param
 * description: 页数参数
 */
@Data
public class PageParam{
    private  Integer currentPage = 1;
    private  Integer pageSize = 10;
    /**
     * @description: 获取起始页数
     * @author: xiaoxie
     * @date: 2024/9/8 9:48
     * @param: []
     * @return: java.lang.Integer
     **/
    public Integer getOffSet() {
        return (currentPage - 1) * pageSize;
    }
}
